home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2001 May / SGI Freeware 2001 May - Disc 1.iso / dist / fw_qt.idb / usr / freeware / include / qgrid.h.z / qgrid.h
C/C++ Source or Header  |  2001-04-12  |  2KB  |  71 lines

  1. /****************************************************************************
  2. ** $Id: qt/src/widgets/qgrid.h   2.3.0   edited 2001-01-26 $
  3. **
  4. ** Copyright (C) 1992-2000 Trolltech AS.  All rights reserved.
  5. **
  6. ** This file is part of the widgets module of the Qt GUI Toolkit.
  7. **
  8. ** This file may be distributed under the terms of the Q Public License
  9. ** as defined by Trolltech AS of Norway and appearing in the file
  10. ** LICENSE.QPL included in the packaging of this file.
  11. **
  12. ** This file may be distributed and/or modified under the terms of the
  13. ** GNU General Public License version 2 as published by the Free Software
  14. ** Foundation and appearing in the file LICENSE.GPL included in the
  15. ** packaging of this file.
  16. **
  17. ** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
  18. ** licenses may use this file in accordance with the Qt Commercial License
  19. ** Agreement provided with the Software.
  20. **
  21. ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
  22. ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  23. **
  24. ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
  25. **   information about Qt Commercial License Agreements.
  26. ** See http://www.trolltech.com/qpl/ for QPL licensing information.
  27. ** See http://www.trolltech.com/gpl/ for GPL licensing information.
  28. **
  29. ** Contact info@trolltech.com if any conditions of this licensing are
  30. ** not clear to you.
  31. **
  32. **********************************************************************/
  33.  
  34. #ifndef QGRID_H
  35. #define QGRID_H
  36.  
  37. #ifndef QT_H
  38. #include "qframe.h"
  39. #endif // QT_H
  40.  
  41. #ifndef QT_NO_GRID
  42.  
  43. class QGridLayout;
  44.  
  45. class Q_EXPORT QGrid : public QFrame
  46. {
  47.     Q_OBJECT
  48. public:
  49.     enum Direction { Horizontal, Vertical };
  50.     QGrid( int n, QWidget *parent=0, const char *name=0, WFlags f=0 );
  51.     QGrid( int n, Direction, QWidget *parent=0, const char *name=0,
  52.        WFlags f=0 );
  53.     void setSpacing( int );
  54.     QSize sizeHint() const;
  55.  
  56. protected:
  57.     void frameChanged();
  58.  
  59. private:
  60.     QGridLayout *lay;
  61. private:    // Disabled copy constructor and operator=
  62. #if defined(Q_DISABLE_COPY)
  63.     QGrid( const QGrid & );
  64.     QGrid& operator=( const QGrid & );
  65. #endif
  66. };
  67.  
  68. #endif // QT_NO_GRID
  69.  
  70. #endif // QGRID_H
  71.